<%
################################################################################
# NOTE: It is STRONGLY suggested that if you wish to customize the look and feel
# of your Helpy, that you create a custom theme instead.  This will allow
# you to override any views or styles you wish to, without compromosing your
# ability to upgrade in the future
################################################################################
%>

<div class="form-group has-feedback right-inner-addon">
  <%= form_tag result_path, method: :get, id: 'search-form', remote: (params[:controller] == 'result') do %>
    <div class="input-group">
      <%= text_field_tag('q', nil, placeholder: t(:search_placeholder, default: "Enter a keyword, topic, or question"), id: 'search-field', class: 'form-control ui-autocomplete-input autosearch', value: params[:q]) %>
      <div class="search-result-box">
      </div>
      <div class="input-group-btn">
        <button type="submit" class="btn btn-default" aria-label="Search">
          <span class="glyphicon glyphicon-search"></span>
        </button>
      </div>
    </div>
  <% end # form %>
</div>
